package com.gitee.srurl.core.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author zxw
 * @date 2023/4/29 22:03
 */
@Data
@Component
@ConfigurationProperties(prefix = "short-url.thread-pool.default-pool")
public class ThreadPoolProperties {

    /**
     * 最大数量
     */
    private Integer maxPoolSize;

    /**
     * 核心数量
     */
    private Integer corePoolSize;

    /**
     * 队列长度
     */
    private Integer queueCapacity;

    /**
     * 线程池维护线程所允许的空闲时间
     */
    private Integer keepAliveSeconds;
}
